package com.itheima.appserver.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.appserver.config.MyThreadLocal;
import com.itheima.dubbo.interfaces.TimeLineApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: lqTao
 * @Date: 2021/12/8 11:07
 */
@Service
public class TimeLineService {

    @Reference
    TimeLineApi timeLineApi;

    public void save(String publishId) {
        timeLineApi.save(publishId, MyThreadLocal.getUserId());

    }
}
